<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function f1(a, b, c = +prompt("num?", 100), d = 20 + 30) {
        console.log(a, b, c, d);
      }

      f1(100, 200, 400);
    </script>
  </body>
</html>
